package links

import (
	"fmt"
	"net/http"
)

func Extract(url string)  ([]string, error) {

	response, err := http.Get(url)
	if err != nil {
		return nil, err
	}

	if response.StatusCode != http.StatusOK {
		return nil, fmt.Errorf("getting %s, error code %d", url, response.StatusCode)
	}

	return nil, err
}
